package Algorithm;

public class Palindrome {
    public static boolean isPalindrome(String iniString){
        if(iniString.isEmpty())return true;
        StringBuilder stringBuilder=new StringBuilder(iniString);
        return iniString.equals(stringBuilder.reverse().toString());
    }

    public static void main(String[] args) {
        System.out.println(isPalindrome("abbc"));
        for(int i=1;i<10;i++){
            for(int j=0;j<10;j++){
                System.out.println(i*1000+j*100+i*10+j);
            }
        }
    }
}
